﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using GraphicUserInterface.MainForm.NewAccount;

namespace GraphicUserInterface.MainForm.Sign_VerifyDigitalSignature
{
    public partial class frDigitalSignature : Form
    {
        int iUserID;
        public frDigitalSignature(int iUserID)
        {
            InitializeComponent();
            this.iUserID = iUserID;
        }

        private void btBack_Click(object sender, EventArgs e)
        {
            this.Owner.Show();
            this.Close();
        }

        private void btSign_Click(object sender, EventArgs e)
        {
            frSign sign = new frSign(this.iUserID);
            frCheckPassphraseValid checkPassphraseValidForm = new frCheckPassphraseValid(this.iUserID, sign);
            checkPassphraseValidForm.Owner = this;
            checkPassphraseValidForm.Show();
            this.Hide();

            //frSign sign = new frSign(this.iUserID);
            //sign.Owner = this;
            //sign.Show();
            //this.Hide();
        }

        private void btVerify_Click(object sender, EventArgs e)
        {
            frVerify verify = new frVerify();
            verify.Owner = this;
            verify.Show();
            this.Hide();
        }
    }
}
